package wiki.zimo.certificate_manage.domain;
/**  
 *
 * @author 子墨
 * @date 2018/10/17 20:09
 * @describe 存在session中的用户类
 */
public class User {

    private Student student;
    private Teacher teacher;
    private Leader leader;
    private String role;

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public Leader getLeader() {
        return leader;
    }

    public void setLeader(Leader leader) {
        this.leader = leader;
    }

    @Override
    public String toString() {
        return "User{" +
                "student=" + student +
                ", teacher=" + teacher +
                ", leader=" + leader +
                ", role='" + role + '\'' +
                '}';
    }
}
